<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
<!-- RichFaces tag library declaration -->
<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
<%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>

<html>
    <head>

        <title>Motorbike tour organizing system | Login</title>

    </head>

    <body>

        <f:view>
            <rich:panel header="Login">
                <h:form>
                    <h:outputText value="#{login.error}" style="color:darkred"/><br/>

		    <h:panelGrid columns="2" style="margin:0 auto;">

			<h:outputText value="User:"/>
			<h:inputText value="#{login.name}" required="false"/>

			<h:outputText value="Password:"/>
			<h:inputSecret value="#{login.password}" required="false"/>

		    </h:panelGrid>

		    <h:panelGrid columns="2" style="margin:0 auto;">
			<h:commandButton value="Login" action="#{login.onLogin}"/>
			<h:commandButton value="Register" action="register"/>
		    </h:panelGrid>
                </h:form>
            </rich:panel>

        </f:view>
    </body>
</html>

